package net.ericaro.neojavagen.types ;
import net.ericaro.neojavagen.types.AdditionalBounds;
import net.ericaro.neojavagen.types.ClassOrInterfaceType ;

/**
* *<pre> TypeBound :
    extends ClassOrInterfaceType AdditionalBounds?
</pre>
*/
public class TypeBound   {

ClassOrInterfaceType classorinterfacetype;
AdditionalBounds additionalbounds ;

public TypeBound( ClassOrInterfaceType classorinterfacetype, AdditionalBounds additionalbounds ){
	this.classorinterfacetype = classorinterfacetype; this.additionalbounds = additionalbounds ;
	}public TypeBound( ClassOrInterfaceType classorinterfacetype ){
this.classorinterfacetype = classorinterfacetype ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( "extends" ).append(" ");
stringbuilder.append( this.classorinterfacetype ).append(" ");
if (this.additionalbounds !=null ) stringbuilder.append( this.additionalbounds ).append(" ") ;
	return stringbuilder.toString();
}

}
